package cn.lyd.org.mapper;

import cn.lyd.org.domain.Shop;
import cn.lyd.base.mapper.BaseMapper;
import cn.lyd.org.vo.ShopVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lyd
 * @since 2022-12-26
 */
public interface ShopMapper extends BaseMapper<Shop> {

    //通过店铺名字查找
    Shop findByName(String shopName);

    //通过AdminId查询店铺
    Shop findByAdminId(Long id);

    //报表
    List<ShopVo> loadShopEchartsData();


    /*//通过店铺地址查找
    Shop findByAddress(String address);*/

  /*  //通过店铺座机查找
    Shop findByTel(String tel);*/

    //批量新增
//    void batchAdd(List<Shop> shops);
}
